<?php	namespace hdphp\App;
include "../Controller/Controller.php";
//hdphp\App\Controller
//第一种方法
//class IndexController extends \hdphp\Controller\Controller
//{
//	public function index(){
//		echo "index";
//	}
//}
//$obj = new IndexController;
//$obj->index();


//第二种方法(推荐使用)
//use hdphp\Controller\Controller;
//class IndexController extends Controller
//{
//	public function index(){
//		echo "index";
//	}
//}
//$obj = new IndexController;
//$obj->index();

//第三种
use hdphp\Controller as c;
class IndexController extends c\Controller
{
	public function index(){
		echo "index";
	}
}
$obj = new IndexController;
$obj->index();












